package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : PaiTaSuo
 * Date : 2016/5/27
 * Description :
 */
public class ApiGetQuickLogin extends ApiBaseParamAbstract {

    public ApiGetQuickLogin(String mobile, String code, String userIp, String appKey, MyRetroCallBack myRetroCallBack) {
        super(myRetroCallBack);
        mParams.put("mobile", mobile);
        mParams.put("code", code);
        mParams.put("ip", userIp);
        mParams.put("appKey", appKey);
    }

    @Override
    public Call<RootResult> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getMobileBind(mParams);
    }
}
